import request from '@/utiles/request'

// 获取树形接口
export const GetListApi = () => {
  return request({
    method: 'GET',
    url: '/business-hall/tree'
  })
}
// 获取机构详情
export const getBusinessHallApi = (id) => {
  return request({
    method: 'GET',
    url: `/business-hall/${id}`
  })
}
// 获取地址信息
export const getAreasApi = () => {
  return request({
    method: 'GET',
    url: '/areas/children'
  })
}
// 获取员工分页数据
export const getuserApi = (params) => {
  return request({
    method: 'GET',
    url: '/business-hall/user/page',
    params
  })
}
// 根据父id获取地址信息
export function getAreasByIdAPI (id) {
  return request({
    method: 'GET',
    url: '/areas/children',
    params: { parentId: id }
  })
}
export function getOrderDetailAPI (id) {
  return request({
    method: 'GET',
    url: `/order-manager/order/${id}`
  })
}
